package com.hmy.security.exception;


import com.hmy.common.exception.IResultEnum;

public enum UserException implements IResultEnum {
    NOT_FOUND(10001, "找不到相关用户"),
    ;

    private final int code;
    private final String msg;

    UserException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
